
<% if property.flatten_object -%>
<% property.nested_properties.each do |prop| -%>
<%= lines(build_nested_property_documentation(prop, pwd)) -%>
<% end -%>
<%
  elsif property.nested_properties?
-%>
The `<%= property.name.underscore -%>` block <%= if property.output then "contains" else "supports" end -%>:
<%- if property.is_a?(Api::Type::Map) %>
* `<%= property.key_name.underscore -%>` - (Required) The identifier for this object. Format specified above.
<% end -%>
<% property.nested_properties.each do |prop| -%>
<%= lines(build_property_documentation(prop, pwd)) -%>
<% end -%>

<% property.nested_properties.each do |prop| -%>
<%= lines(build_nested_property_documentation(prop, pwd)) -%>
<% end -%>
<% end -%>
